package com.shxzz.easy12306.services.ticket.remote;

import com.shxzz.easy12306.framework.starter.common.dto.user.PassengerActualRespDTO;
import com.shxzz.easy12306.framework.starter.convention.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 用户服务远程调用
 * @author shxzz
 * @create 2024-03-09-14:43
 */
@FeignClient(value = "easy12306-user-service")
public interface UserRemoteService {

    /**
     * 根据乘车人ID列表查询乘车人信息
     */
    @GetMapping("/api/user-service/inner/passenger/actual/query/ids")
    Result<List<PassengerActualRespDTO>> listPassengerQueryByIds(@RequestParam("username") String username, @RequestParam("ids") List<Long> ids);

}
